package com.couldtest.providerA.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.config.environment.Environment;
import org.springframework.cloud.config.environment.PropertySource;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created by liguanfu on 2018/7/3.
 */
@RefreshScope
@RestController
public class ConfigController {

    //@Value("${from}")
    //private String from;

    @RequestMapping("/from")
    public String from(){
        return "111";
    }
}
